#define _CRT_SECURE_NO_WARNINGS 1

#include<stdlib.h>
#include<stdio.h>
typedef struct contact
{
    char name[50];
    char phone[15];
    int age;
}cont;
int main()
{
    cont* p = NULL;
    cont* tmp = (cont*)malloc(sizeof(cont)*2);
    if (tmp == NULL)
    {
        return 0;
    }
    p = tmp;
    scanf_s("%49s", p[0].name, (unsigned)_countof(p[0].name));
    scanf_s("%14s", p[0].phone, (unsigned)_countof(p[0].phone));
    scanf_s("%d", &p[0].age);
    scanf_s("%49s", p[1].name, (unsigned)_countof(p[1].name));
    scanf_s("%14s", p[1].phone, (unsigned)_countof(p[1].phone));
    scanf_s("%d", &p[1].age);
    
    p[1] = p[0];
    printf("%s %s %d", p[1].name, p[1].phone, p[1].age);
    return 0;

}